package cn.xutongxue.interview.service;

import cn.xutongxue.interview.entity.QuestionBank;
import cn.xutongxue.interview.entity.vo.bank.BankDetailVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【question_bank(题库表)】的数据库操作Service
* @createDate 2024-09-11 16:43:43
*/
public interface QuestionBankService extends IService<QuestionBank> {

    /**
     * 根据题库id查询题库详情
     * @param id 题库id
     * @return 题库详情
     */
    BankDetailVo queryBankDetailById(Long id);

    /**
     * 添加题目到题库
     * @param bankId 题库id
     * @param questionId 题目id
     */
    void addSingleQuestionToBank(Long bankId, Long questionId);
}
